package com.oreilly.justspring.core.ch1.ex15;

import com.oreilly.justspring.core.ch1.IReader;

public class ReaderService {
  private IReader reader = null;

  public ReaderService() {
  }

  public String fetchData() {
    return getReader().read();
  }

  public void setReader(IReader reader) {
    this.reader = reader;
  }

  public IReader getReader() {
    return reader;
  }
}
